﻿<%@ Page Language="C#" MasterPageFile="~/Areas/Website/Views/Shared/Website.Master"
    Inherits="System.Web.Mvc.ViewPage<HelpSectionViewModel>" %>

<asp:Content ContentPlaceHolderID="head" runat="server">
    <%= Html.HtmlTitle(string.Format("{0} - 帮助中心", Model.HelpSection.Title )) %>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="help_left">
        <h2>
            帮助中心</h2>
        <div class="help_side">
            <% foreach (HelpTypeEntity hte in Model.HelpTypeList)
               { %>
            <h4>
                <%=hte.Name %></h4>
            <ul>
                <% foreach (HelpSectionEntity hse in Model.HelpSectionList.Where(s => { return s.TypesId == hte.TypesId; }))
                   { %>
                <li><a href="<%=hse.IsExLink ? hse.ExLinkUrl : Url.Action("Help", "Home", new { id = hse.SectionsId }) %>"
                    target="<%=hse.IsExLink ? "_blank" : "_self" %>">
                    <%=hse.Title %></a></li>
                <%} %>
            </ul>
            <%} %>
        </div>
    </div>
    <div class="help_right">
        <%=Model.HelpSection.Content %></div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cssLink" runat="server">
    <link rel="Stylesheet" type="text/css" href="<%= Url.Content("~/Css/Website/Help.css") %>" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="jsLink" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="cssContent" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="jsContent" runat="server">
<script type="text/javascript">
    $(function() {
        var n = $(".topBanner .navigator li");
        n.removeClass("current");
        n[2].className = "current";
    });
</script>
</asp:Content>
